import { request } from '@/utils/request'

export function logout(success, error) {
  return request('auth/logout', 'post', {}, success, error)
}
export function login(data, success, error) {
  return request('/login', 'post', data, success, error)
}
export function loginInfo(success, error) {
  return request('/me', 'get', {}, success, error)
}
export function fetchRegion(success, error) {
  return request('/common/getRegion', 'get', {}, success, error)
}
export function fetchIndustry(success, error) {
  return request('common/getHangye  ', 'get', {}, success, error)
}
export function fetchStatus(success, error) {
  return request('common/statusList', 'get', {}, success, error)
}
export function base(success, error) {
  return request('data_view/base  ', 'get', {}, success, error)
}
export function chartData(success, error) {
  return request('data_view/chartData', 'get', {}, success, error)
}